package com.efast.cafe.commponent.job.config;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;


public class QuartzConfigUtil {

	private static Properties ConfigProperties = new Properties();
	
	static {
	   try {
		     ConfigProperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("quartz.properties"));
	   } catch (FileNotFoundException e) {
		       e.printStackTrace();
		} catch (IOException e) {
		    	 e.printStackTrace();
	    }
	 }
	
	public static Properties getConfigProperties(){
		return ConfigProperties;
	}
	
	public static String getValue(String key)
    {
		return ConfigProperties.getProperty(key);
	}
	
	
}
